<template>
  <div style="position: fixed;"></div>
</template>
<script>
import { mapActions, mapGetters } from 'vuex';
//let config = require('../../config/config');
import * as mapOper from '../../scripts/mapOper.js';
export default {
  name: 'R101',
  computed: { ...mapGetters(['map']) },

  mounted() {
    /**
     * 清除地图
     */
    if (this.map) {
      let map = mapOper.removeAllLayers(this.map);
      this.changeMap({ map: map });

      let imap = mapOper.removeInteractions(this.map);
      this.changeMap({ map: imap });

      let omap = mapOper.removeAllOverlay(this.map);
      this.changeMap({ map: omap });
    }
  },
  methods: {
    ...mapActions(['changeMap'])
  }
};
</script>

